import { IsBoolean, IsNotEmpty, IsNumberString, IsString } from "class-validator"


export class addUserListDto {

    @IsNotEmpty()
    @IsString()
    readonly name: string

    @IsNotEmpty()
    @IsString()
    readonly password: string

}

export class getUserListDto {

    @IsNotEmpty()
    @IsNumberString()
    readonly pageNo: number | string

    @IsNotEmpty()
    @IsNumberString()
    readonly pageSize: number | string

}

export class deleteUserDto {

    @IsNotEmpty()
    @IsString()
    readonly id: string

}


export class updateUserDto extends deleteUserDto {

    @IsBoolean()
    readonly status: boolean

}

export class setUserPassDto {

    @IsNotEmpty()
    @IsString()
    readonly name: string

    @IsNotEmpty()
    @IsString()
    readonly password: string

    @IsNotEmpty()
    @IsString()
    readonly setpassword: string

}